package test.test6_20;

public class Demo1 {
    public static void main(String[] args) {
        double[] arr = {2.0,4.0,6.0,8.0,10.0,12.0,14.0};
        arr = array(arr);

        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }

    public static double[] array(double[] arr) {
        double[] arr1 = new double[arr.length];
        for(int i = 0; i < arr.length; i++) {
            arr1[i] = arr[i] / arr[0];
        }

        return arr1;
    }
}
